﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Trauberman.SOChat.StarLeaderboard.Data;
using Trauberman.SOChat.StarLeaderboard.Domain;
using Trauberman.SOChat.StarLeaderboard.Services;
using Trauberman.SOChat.StarLeaderboard.Models;

namespace Trauberman.SOChat.StarLeaderboard.Controllers
{
	public class HomeController : Controller
	{
		private IChatroomService _chatService;
		public HomeController(IChatroomService chatService)
		{
			this._chatService = chatService;
		}

		public ActionResult Index()
		{
			return View(_chatService.GetChatRooms());
		}
	}
}
